﻿using System;

namespace NavFx
{
	/// <summary>
	/// Thrown when a method of the Navigator is called before the Transitor property has been set
	/// </summary>
	public class TransitorNotSetException: Exception
	{
		/// <summary>
		/// Default constructor
		/// </summary>
		public TransitorNotSetException()
			: base("No Transitor available, this property must be set before calling methods that depend on it.")
		{
			//nothing else to do
		}

		/// <summary>
		/// Constructor overload supporting a custom error message
		/// </summary>
		public TransitorNotSetException(string message)
			: base(message)
		{
			//nothing else to do
		}

		/// <summary>
		/// Constructor overload supporting a custom error message and inner exception
		/// </summary>
		public TransitorNotSetException(string message, Exception innerException)
			: base(message, innerException)
		{
			//nothing else to do
		}
	}
}
